package serverDB;
import org.hibernate.Session;

public class ClientManager {
	private Session session = null;
	public ClientManager(Session session) {
		if(session == null)
			throw new RuntimeException("Invalid session object.");
		this.session = session;
	}
	public void saveUser(Client client){
	 session.save(client);
	}
	public void updateUser(Client client){
	 session.update(client);
	}
	public void deleteUser(Client client) {
	 session.delete(client);
	}
}

